﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FDStudio.Core.Entities
{
    /*
     CreatedOn: 2018-01-30
     CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// 创建
    /// </summary>
    public interface ICreateEntity : IEntity
    {
        /// <summary>
        /// 创建时间
        /// </summary>
        DateTime CreatedOn { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        long CreatedBy { get; set; }
    }

    public abstract class CreateEntity : ICreateEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedOn { get; set; } = DateTime.Now;

        /// <summary>
        /// 创建人
        /// </summary>
        public long CreatedBy { get; set; }
    }
}
